home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Apple WWDC 1996
/
WWDC96_1996 (CD).toast
/
Technology Materials
/
MacOS 8 Resources
/
Developer Tools
/
Mac OS 8 Interfaces & Libraries
/
Interfaces
/
CIncludes
/
NotifierModule.h
< prev
next >
Wrap
C/C++ Source or Header
|
1996-05-01
|
8KB
|
245 lines
/*
* This file was generated by the SOM Compiler.
* FileName: NotifierModule.h.
* Generated using:
* SOM Precompiler somipc: 2.18
* SOM Emitter emith.dll: 2.33
*/
#ifndef SOM_NotifierModule_h
#define SOM_NotifierModule_h
/*
* Passthru lines: File: "C.h", "before"
*/
#include <Notification.h>
#include <som.h>
/*
* -- This emitter treats Method Tokens as Thunks by default.
* -- Use the sc modifier "nothunks" to change this default
*/
#undef somresolve_
#define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
/*
* Define the class name as an object type
*/
#ifndef NotifierModule
#define NotifierModule SOMObject
#endif
#include <somobj.h>
/*
* Start of user-defined types:
*/
#ifndef SOMClass
#define SOMClass SOMObject
#endif /* SOMClass */
#ifndef SOMObject
#define SOMObject SOMObject
#endif /* SOMObject */
/*
* End of user-defined types.
*/
#define NotifierModule_MajorVersion 0
#define NotifierModule_MinorVersion 0
/*
* External name shortening if required
*/
#ifdef SOM_USE_SHORT_EXTERNAL_NAMES
#define NotifierModuleClassData d
#endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
/*--------------Migration------------*/
#ifdef OLDIBMSOMAPISUPPORT
#define NotifierModule_classObj somNewClassReference(NotifierModule)
#define _NotifierModule NotifierModule_classObj
#define NotifierModuleCClassData NotifierModuleClassData
#define NotifierModuleNewClass(major,minor) somNewVersionedClassReference(NotifierModule,major,minor)
#endif
/* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
#define NotifierModuleMetaClass SOMClass
#if PRAGMA_ALIGN_SUPPORTED
# pragma options align=power
#endif
/*
* Declare the class data structure
*/
SOMEXTERN struct NotifierModuleClassDataStructure {
#ifdef OLDIBMSOMAPISUPPORT
SOMAny *classObject; /* always zero, use somNewClassReference instead */
#else
long zero;
#endif
somStaticClassInfo *sci;
somDToken instanceDataToken;
long reserved [3];
somMToken InitializeModule;
somMToken DisposeModule;
somMToken AddNotificationRequest;
somMToken RemoveNotificationRequest;
somMToken CheckCompletedRequest;
somMToken Idle;
} SOMDLINK NotifierModuleClassData;
#if PRAGMA_ALIGN_SUPPORTED
# pragma options align=reset
#endif
#if !defined(NotifierModule_Class_Source) && !defined(SOM_Module_notifiermodule_Source)
#if PRAGMA_IMPORT_SUPPORTED
#pragma import list NotifierModuleClassData
#endif
#endif
/*
* New macro for NotifierModule
*/
#define NotifierModuleNew() somNewObject(NotifierModule)
/*
* New Method: InitializeModule
*/
typedef OSStatus (SOMLINK *somTD_NotifierModule_InitializeModule)(NotifierModule *somSelf, Environment *ev);
#define somMD_NotifierModule_InitializeModule "::NotifierModule::InitializeModule"
#define NotifierModule_InitializeModule(somSelf,ev) \
(SOM_Resolve(somSelf, NotifierModule, InitializeModule) \
(somSelf,ev))
#ifndef SOMGD_InitializeModule
#if defined _InitializeModule || defined __InitializeModule
#undef _InitializeModule
#undef __InitializeModule
#define SOMGD_InitializeModule 1
#else
#define _InitializeModule NotifierModule_InitializeModule
#endif /* _InitializeModule */
#endif /* SOMGD_InitializeModule */
/*
* New Method: DisposeModule
*/
typedef void (SOMLINK *somTD_NotifierModule_DisposeModule)(NotifierModule *somSelf, Environment *ev);
#define somMD_NotifierModule_DisposeModule "::NotifierModule::DisposeModule"
#define NotifierModule_DisposeModule(somSelf,ev) \
(SOM_Resolve(somSelf, NotifierModule, DisposeModule) \
(somSelf,ev))
#ifndef SOMGD_DisposeModule
#if defined _DisposeModule || defined __DisposeModule
#undef _DisposeModule
#undef __DisposeModule
#define SOMGD_DisposeModule 1
#else
#define _DisposeModule NotifierModule_DisposeModule
#endif /* _DisposeModule */
#endif /* SOMGD_DisposeModule */
/*
* New Method: AddNotificationRequest
*/
typedef OSStatus (SOMLINK *somTD_NotifierModule_AddNotificationRequest)(NotifierModule *somSelf, Environment *ev,
NotificationRef theNotification);
#define somMD_NotifierModule_AddNotificationRequest "::NotifierModule::AddNotificationRequest"
#define NotifierModule_AddNotificationRequest(somSelf,ev,theNotification) \
(SOM_Resolve(somSelf, NotifierModule, AddNotificationRequest) \
(somSelf,ev,theNotification))
#ifndef SOMGD_AddNotificationRequest
#if defined _AddNotificationRequest || defined __AddNotificationRequest
#undef _AddNotificationRequest
#undef __AddNotificationRequest
#define SOMGD_AddNotificationRequest 1
#else
#define _AddNotificationRequest NotifierModule_AddNotificationRequest
#endif /* _AddNotificationRequest */
#endif /* SOMGD_AddNotificationRequest */
/*
* New Method: RemoveNotificationRequest
*/
typedef OSStatus (SOMLINK *somTD_NotifierModule_RemoveNotificationRequest)(NotifierModule *somSelf, Environment *ev,
NotificationRef theNotification);
#define somMD_NotifierModule_RemoveNotificationRequest "::NotifierModule::RemoveNotificationRequest"
#define NotifierModule_RemoveNotificationRequest(somSelf,ev,theNotification) \
(SOM_Resolve(somSelf, NotifierModule, RemoveNotificationRequest) \
(somSelf,ev,theNotification))
#ifndef SOMGD_RemoveNotificationRequest
#if defined _RemoveNotificationRequest || defined __RemoveNotificationRequest
#undef _RemoveNotificationRequest
#undef __RemoveNotificationRequest
#define SOMGD_RemoveNotificationRequest 1
#else
#define _RemoveNotificationRequest NotifierModule_RemoveNotificationRequest
#endif /* _RemoveNotificationRequest */
#endif /* SOMGD_RemoveNotificationRequest */
/*
* New Method: CheckCompletedRequest
*/
typedef boolean (SOMLINK *somTD_NotifierModule_CheckCompletedRequest)(NotifierModule *somSelf, Environment *ev,
NotificationRef theNotification);
#define somMD_NotifierModule_CheckCompletedRequest "::NotifierModule::CheckCompletedRequest"
#define NotifierModule_CheckCompletedRequest(somSelf,ev,theNotification) \
(SOM_Resolve(somSelf, NotifierModule, CheckCompletedRequest) \
(somSelf,ev,theNotification))
#ifndef SOMGD_CheckCompletedRequest
#if defined _CheckCompletedRequest || defined __CheckCompletedRequest
#undef _CheckCompletedRequest
#undef __CheckCompletedRequest
#define SOMGD_CheckCompletedRequest 1
#else
#define _CheckCompletedRequest NotifierModule_CheckCompletedRequest
#endif /* _CheckCompletedRequest */
#endif /* SOMGD_CheckCompletedRequest */
/*
* New Method: Idle
*/
typedef void (SOMLINK *somTD_NotifierModule_Idle)(NotifierModule *somSelf, Environment *ev);
#define somMD_NotifierModule_Idle "::NotifierModule::Idle"
#define NotifierModule_Idle(somSelf,ev) \
(SOM_Resolve(somSelf, NotifierModule, Idle) \
(somSelf,ev))
#ifndef SOMGD_Idle
#if defined _Idle || defined __Idle
#undef _Idle
#undef __Idle
#define SOMGD_Idle 1
#else
#define _Idle NotifierModule_Idle
#endif /* _Idle */
#endif /* SOMGD_Idle */
#ifndef SOM_DONT_USE_INHERITED_MACROS
#define NotifierModule_somInit SOMObject_somInit
#define NotifierModule_somUninit SOMObject_somUninit
#define NotifierModule_somDuplicateReference SOMObject_somDuplicateReference
#define NotifierModule_somCompareReference SOMObject_somCompareReference
#define NotifierModule_somRelease SOMObject_somRelease
#define NotifierModule_somFree SOMObject_somFree
#define NotifierModule_somCanDelete SOMObject_somCanDelete
#define NotifierModule_somGetClass SOMObject_somGetClass
#define NotifierModule_somGetClassName SOMObject_somGetClassName
#define NotifierModule_somGetSize SOMObject_somGetSize
#define NotifierModule_somIsA SOMObject_somIsA
#define NotifierModule_somRespondsTo SOMObject_somRespondsTo
#define NotifierModule_somIsInstanceOf SOMObject_somIsInstanceOf
#define NotifierModule_somDispatch SOMObject_somDispatch
#define NotifierModule_somClassDispatch SOMObject_somClassDispatch
#define NotifierModule_somCastObj SOMObject_somCastObj
#define NotifierModule_somResetObj SOMObject_somResetObj
#define NotifierModule_somPrintSelf SOMObject_somPrintSelf
#define NotifierModule_somDumpSelf SOMObject_somDumpSelf
#define NotifierModule_somDumpSelfInt SOMObject_somDumpSelfInt
#endif /* SOM_DONT_USE_INHERITED_MACROS */
#endif /* SOM_NotifierModule_h */